package com.mxpio.erp.common.technology.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import java.math.BigDecimal;

/**
 * @Author : wpp
 * @Datetime : 2023/3/21 9:54
 * @Desc :
 * @Modor :  Modifytime:
 * @modDesc :
 */
@ColumnWidth(30)
public class BomInfoImportModel {
    @ExcelProperty(value = "父级物料编码")
    private String parentCode;

    @ExcelProperty(value = "父级物料名称")
    private String parentName;

    @ExcelProperty(value = "父级物料图号")
    private String parentDrawingNo;


    @ExcelProperty(value = "子级物料编码")
    private String itemCode;

    @ExcelProperty(value = "子级物料名称")
    private String itemName ;


    @ExcelProperty(value = "单台数量")
    private BigDecimal itemConsumption;


    @ExcelProperty(value = "下料长度V")
    private BigDecimal makeLength;

    @ExcelProperty(value = "宽度")
    private BigDecimal makeArea;

    @ExcelProperty(value = "数量V")
    private BigDecimal makeNum;


    public void fail(String errMsg) {
        setImportSuccess("失败");
        setImportMsg(errMsg);
    }
    @ExcelProperty(value = "导入结果")
    private String importSuccess;

    @ExcelProperty(value = "导入提示信息")
    private String importMsg;


    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getParentDrawingNo() {
        return parentDrawingNo;
    }

    public void setParentDrawingNo(String parentDrawingNo) {
        this.parentDrawingNo = parentDrawingNo;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public BigDecimal getItemConsumption() {
        return itemConsumption;
    }

    public void setItemConsumption(BigDecimal itemConsumption) {
        this.itemConsumption = itemConsumption;
    }

    public BigDecimal getMakeLength() {
        return makeLength;
    }

    public void setMakeLength(BigDecimal makeLength) {
        this.makeLength = makeLength;
    }

    public BigDecimal getMakeArea() {
        return makeArea;
    }

    public void setMakeArea(BigDecimal makeArea) {
        this.makeArea = makeArea;
    }

    public BigDecimal getMakeNum() {
        return makeNum;
    }

    public void setMakeNum(BigDecimal makeNum) {
        this.makeNum = makeNum;
    }

    public String getImportSuccess() {
        return importSuccess;
    }

    public void setImportSuccess(String importSuccess) {
        this.importSuccess = importSuccess;
    }

    public String getImportMsg() {
        return importMsg;
    }

    public void setImportMsg(String importMsg) {
        this.importMsg = importMsg;
    }
}
